package com.yida.gwj.report.mapper;

import com.yida.gwj.report.domain.GwjCalculateRateLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: PPV
 * @Date: 2023-03-21
 */
@Mapper
public interface GwjCalculateRateHouseMapper {


    int insert(GwjCalculateRateLog log);


    List<GwjCalculateRateLog> listLogs(@Param("areaId") Long areaId, @Param("calculateFlag") String calculateFlag);

    List<GwjCalculateRateLog> listLogs4Community(@Param("communityId") Long communityId, @Param("calculateFlag") String calculateFlag);

    /**
     * 批量插入房屋日志
     * @param newHouseLogList
     * @return
     */
    int insertBatch(@Param("newHouseLogList") List<GwjCalculateRateLog> newHouseLogList);

    /**
     * 批量更新结息标志
     * @param houseLogList
     * @return
     */
    int editSettleFlag(@Param("houseLogList") List<GwjCalculateRateLog> houseLogList);
}
